<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>   
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css"/>
<script src="/bootstrap/js/jquery-3.1.1.min.js"></script>
<!-- <script src="/jedate/jquery-1.7.2.js"></script> -->
<script src="/bootstrap/js/bootstrap.min.js"></script>
<!-- <link rel="stylesheet" href="/jedate/skin/jedate.css"/> 
<link rel="stylesheet" href="/jedate/css/jeui.css"/>
<link rel="stylesheet" href="/jedate/css/prism.css"/>
<script src="/jedate/js/prism.js"></script>
<script src="/jedate/jquery.jedate.js"></script> -->

</head>
<body>
  
  <div class="container"> 
	<div class="row clearfix"> 
	   <div class="col-md-12 column">
		    <ul class="breadcrumb">
				<li>
					 <a href="#">首页</a>
				</li>
				<li>
					 <a href="#">电影</a>
				</li>
				<li class="active">
					更新电影
				</li>
			</ul>
		</div>
	</div>
	<div class="row clearfix">
		<div class="col-md-12 column" align="center"> 
		    <form:form action="/film/update/${film.filmId}" method="post" class="col-md-4 col-md-offset-4" modelAttribute="film">
		       <div class="form-group"> 
		          <input type="hidden" name="_method" value="PUT">
		          <input type="hidden" name="filmId" value="${film.filmId}">
		       </div>
		       <div class="form-group">
		      		<label class="control-label pull-left error">    </label>
		       		<input type="submit" class="btn btn-block btn-primary" value="更新电影">
		       </div>
		       <img src="/assets/img/${film.filmCover}" style="width:280px;height:150px;"/>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影名:</label>
		       		<input class="form-control" name="filmName" type="text" 
		       		 placeholder="请输入数字,字母,汉字若干"  pattern="[A-z0-9\u4e00-\u9fa5]+" required autofocus
		       		 value="${film.filmName}"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 语言:</label>
		       		<input class="form-control" name="filmLanguage" type="text"
		       		 placeholder="请输入语言类型" pattern="[，\u4e00-\u9fa5]{1,10}" required
		       		 value="${film.filmLanguage}"/>
		       </div>
		        <div class="form-group">
		       		<label class="control-label pull-left"> 电影类型:</label>
		       		<input class="form-control" name="ftId" type="text"
		       		value="${film.ftId}"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影价格:</label>
		       		<input class="form-control" name="filmPrice" type="text"
		       		value="${film.filmPrice}"/>
		       </div> 
		       <div class="form-group">
		       		<label class="control-label pull-left"> 会员打折数:</label>
		       		<input class="form-control" name="filmDiscount" type="text"
		       		value="${film.filmDiscount}"/>
		       </div>  
		       <div class="form-group">
		       		<label class="control-label pull-left"> 导演:</label>
		       		<input class="form-control" name="filmDirector" type="text"
		       		value="${film.filmDirector}"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 主演:</label>
		       		<input class="form-control" name="filmAcotr" type="text"
		       		value="${film.filmAcotr}"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影编剧:</label>
		       		<input class="form-control" name="filmWriter" type="text"
		       		value="${film.filmWriter}"/>
		       </div>
               <div class="form-group">
		       		<label class="control-label pull-left"> 上映时间:</label>
		       		<input class="form-control" name="filmShowdate" type="date" required/>
		       </div>
<!-- 		       <div class="form-group">
		       		<label class="control-label pull-left"> 开始时间:</label>
		       		<input class="form-control"  type="date" name="filmStartdate" required/>	     		       		      
		       </div>  -->
		       <div class="form-group">
		       		<label class="control-label pull-left"> 余票:</label>
		       		<input class="form-control" name="ticket" type="text"
		       		value="${film.ticket}"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 总票:</label>
		       		<input class="form-control" name="tickettotal" value="${film.tickettotal}" type="text"
		       		  readonly="readonly"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 是否热映:</label>
		       		<!-- 默认热映 -->
		       		<select name="hot" class="form-control">
					    <option value="1">
						        热映
					    </option>
					    <option value="0">
						        冷门
					    </option>
				     </select>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影简介:</label>
		       		<textarea rows="8" cols="30" class="form-control" name="filmIntroduction">${film.filmIntroduction}</textarea>
		       </div>
		       <div>
		            <label class="control-label pull-left"> 电影状态:</label>
		       		<input class="form-control" name="filmState" type="text" value="${film.filmState}"/>
		       </div>
		    </form:form>
		</div>
	</div>
  </div>
</body>
</html>